.class public Lcom/xingbook/park/ui/bf;
.super Lcom/xingbook/park/ui/bd;


# instance fields
.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/xingbook/park/ui/bd;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/ui/bf;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->g:Ljava/lang/String;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 12
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v11, -0x1

    const v10, -0x333334

    const/4 v9, 0x0

    const/16 v8, 0x10

    const/4 v7, 0x0

    invoke-virtual {p0}, Lcom/xingbook/park/ui/bf;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    new-instance v2, Lcom/xingbook/park/ui/bg;

    invoke-direct {v2, p0}, Lcom/xingbook/park/ui/bg;-><init>(Lcom/xingbook/park/ui/bf;)V

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/high16 v1, 0x4437

    iget v2, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    const v2, 0x43b78000

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/high16 v3, 0x41c8

    iget v4, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    sget-object v5, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    const/16 v4, 0x8

    new-array v4, v4, [F

    int-to-float v5, v3

    aput v5, v4, v7

    const/4 v5, 0x1

    int-to-float v6, v3

    aput v6, v4, v5

    const/4 v5, 0x2

    int-to-float v6, v3

    aput v6, v4, v5

    const/4 v5, 0x3

    int-to-float v3, v3

    aput v3, v4, v5

    const/4 v3, 0x4

    aput v9, v4, v3

    const/4 v3, 0x5

    aput v9, v4, v3

    const/4 v3, 0x6

    aput v9, v4, v3

    const/4 v3, 0x7

    aput v9, v4, v3

    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v3, v8, :cond_0

    iget-object v3, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    const v5, 0xffffff

    invoke-static {v7, v5, v4, v10}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    const/high16 v1, 0x41c0

    iget v2, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    const/high16 v2, 0x4140

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/4 v3, -0x2

    const/high16 v4, 0x41e8

    iget v5, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v4, v5

    float-to-int v4, v4

    const/high16 v5, 0x4120

    iget v6, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v5, v6

    float-to-int v5, v5

    new-instance v6, Landroid/widget/LinearLayout;

    invoke-direct {v6, v0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v6, v4, v5, v4, v5}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setOrientation(I)V

    const/16 v4, 0x11

    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->setGravity(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v3, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xb

    invoke-virtual {v4, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v1, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/high16 v1, 0x4248

    iget v2, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v2, v8, :cond_1

    const v2, 0xffffff

    const v3, -0xe74b13

    invoke-static {v7, v2, v1, v3}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v1

    invoke-virtual {v6, v1}, Landroid/widget/LinearLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v6}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/high16 v2, 0x41e0

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v2, 0x7f0202b6

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundResource(I)V

    invoke-virtual {v6, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/bf;->e:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->e:Landroid/widget/TextView;

    const v2, 0x41dccccd

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    invoke-virtual {v1, v7, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->e:Landroid/widget/TextView;

    invoke-virtual {v1, v11}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->e:Landroid/widget/TextView;

    const/high16 v2, 0x4100

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    invoke-virtual {v1, v2, v7, v7, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->e:Landroid/widget/TextView;

    invoke-virtual {v6, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    const/high16 v1, 0x42dc

    iget v2, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    const/high16 v2, 0x4302

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    new-instance v3, Landroid/view/View;

    invoke-direct {v3, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v4, 0x7f0202b2

    invoke-virtual {v3, v4}, Landroid/view/View;->setBackgroundResource(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    const/16 v1, 0xe

    invoke-virtual {v4, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v3, v4}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    const v1, 0x43b78000

    iget v2, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    const/high16 v2, 0x43e1

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    sub-int/2addr v2, v1

    const/high16 v3, 0x4150

    iget v4, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v7, v3, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    const/high16 v3, 0x41f0

    iget v4, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v3, v4

    invoke-virtual {v0, v7, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    const v3, -0xcccccd

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->setSingleLine()V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    sget-object v3, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v11, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    const/high16 v0, 0x42b8

    iget v1, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    const/high16 v1, 0x4437

    iget v2, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    const/high16 v2, 0x43e1

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v0, v3, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    const/16 v0, 0xe

    invoke-virtual {v3, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bf;->addView(Landroid/view/View;)V

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v8, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/bf;->getBorderWidth()I

    move-result v1

    const/high16 v2, 0x41c8

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    invoke-static {v1, v10, v2, v11}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_2
    return-void

    :cond_0
    iget-object v3, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    const v5, 0xffffff

    invoke-static {v7, v5, v4, v10}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :cond_1
    const v2, 0xffffff

    const v3, -0xe74b13

    invoke-static {v7, v2, v1, v3}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v1

    invoke-virtual {v6, v1}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_1

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/bf;->getBorderWidth()I

    move-result v1

    const/high16 v2, 0x41c8

    iget v3, p0, Lcom/xingbook/park/ui/bf;->a:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    invoke-static {v1, v10, v2, v11}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_2
.end method

.method public a(Lcom/xingbook/park/b/e;Z)V
    .locals 7

    const/4 v4, 0x1

    const/4 v3, 0x0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    const/16 v1, 0x70

    if-ne v0, v1, :cond_0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p0, v3}, Lcom/xingbook/park/ui/bf;->setVisibility(I)V

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Lcom/xingbook/huiben/a/a;

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v0, v1, v2, p2}, Lcom/xingbook/park/ui/bf;->a(ILjava/lang/String;Ljava/lang/String;Z)V

    invoke-virtual {v6, v4}, Lcom/xingbook/huiben/a/a;->d(Z)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/ui/bf;->d:Landroid/widget/ImageView;

    const/4 v2, -0x1

    const/4 v5, 0x0

    invoke-static/range {v0 .. v5}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->f:Landroid/widget/TextView;

    invoke-virtual {v6}, Lcom/xingbook/huiben/a/a;->ab()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bf;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Lcom/xingbook/huiben/a/a;->y()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "\u7236\u6bcd\u63a8\u8350"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v6}, Lcom/xingbook/huiben/a/a;->t()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/ui/bf;->g:Ljava/lang/String;

    :goto_0
    return-void

    :cond_0
    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bf;->setVisibility(I)V

    goto :goto_0
.end method
